home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2068 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  60 lines

  1. Newsgroups: comp.lang.c++
  2. Path: newsfeed.acns.nwu.edu!ftpbox!mothost!schbbs!news
  3. From: Mark Seaborn <cms024@email.mot.com>
  4. Subject: Re: template functions
  5. Content-Type: text/plain; charset=us-ascii
  6. Organization: MOTOROLA 
  7. Date: Mon, 15 Jan 1996 10:02:27 -0600
  8. Message-ID: <30FA7A93.6F8@email.mot.com>
  9. X-Mailer: Mozilla 2.0b5 (Macintosh; I; 68K)
  10. Mime-Version: 1.0
  11. Content-Transfer-Encoding: 7bit
  12. References: <4d5cd4$hli@ousrvr3.oulu.fi>
  13. Sender: news@schbbs.mot.com (SCHBBS News Account)
  14. Nntp-Posting-Host: 145.1.202.19
  15.  
  16. What I usually do in this case is create a header for the class 
  17. protocol and then use the scope operator to define the class in 
  18. another file
  19.  
  20. class.h
  21.  
  22. class foo
  23. {
  24.   foo()
  25.   ~foo();
  26.   int getfoo();
  27. }
  28.  
  29. class.C
  30. foo::foo()
  31. {
  32. }
  33.  
  34. foo::~foo()
  35. {
  36. }
  37.  
  38. int foo::getfoo()
  39. {
  40. }
  41.  
  42.  
  43. -- 
  44. ********************************************************************
  45. *
  46. * Mark Seaborn          | ITTTools  : mseaborn@itthp1.comm.mot.com  
  47. *
  48. * Motorola              | KU        : mseaborn@hawk.cs.ukans.edu    
  49. *
  50. * 1301 E. Algonquin Rd. | Macintosh : cms024@email.mot.com          
  51. *
  52. * Schaumburg, IL. 60196 | Voice     : 708/538-5303                  
  53. *
  54. * Maildrop: IL02/Rm0442 | Fax       : 708/576-2619                  
  55. *
  56. ********************************************************************
  57. *
  58. * AKA : Conan the Saute' Man                                        
  59. *
  60.